home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mc51bugs
/
q32293
< prev
next >
Wrap
Text File
|
1988-07-20
|
938b
|
36 lines
Q32293 _rectangle Hangs Computer when Points Are Out of Bounds
C Compiler
5.10 | 5.10
MS-DOS | OS/2
Summary:
The graphic function _rectangle can cause the system to hang when a
call is made to it and the rectangle coordinates are outside the
display window.
The following program will cause the system to hang on the second
_rectangle call:
#include <stdio.h>
#include <graph.h>
main()
{
if (_setvideomode ( _MRES16COLOR ) )
{
_rectangle ( _GFILLINTERIOR, 80, 50, 240, 150 ) ;
/* The following statement will cause the system to hang */
_rectangle ( _GFILLINTERIOR, 410, 420, 440, 440 ) ;
while (!kbhit()) ;
}
else
{
printf("Unsupported video mode...\n") ;
}
_setvideomode (_DEFAULTMODE) ;
}
Keywords: buglist5.10 buglist1.01 QuickC
Updated 88/07/21 03:19